/*
 * NodeTree.java
 *
 * Created on 29 de agosto de 2006, 21:59
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package fmap.gui.help;

import java.util.Vector;

/**
 *
 * @author javi
 */
public class NodeTree
{
    String name;
    NodeTree[] subNodes;
    String pageHtml;

    /** Creates a new instance of NodeTree */
    public NodeTree ()
    {
    }

    public NodeTree ( String _name, String _pageHtml )
    {
        name        = _name;
        pageHtml    = _pageHtml;
    }

    public String getName ()
    {
        return name;
    }

    public String toString ()
    {
        return name;
    }


    public Vector getVSubNodes ()
    {
        Vector v = new Vector ();
        
        if(subNodes!=null )
        {
            if( subNodes.length > 0)
            {
                for( int i=0; i<subNodes.length; i++)
                {
                    v.add (subNodes[i]);
                }
            }
        }
        
        return v;
    }
    
    public String getPageHtml()
    {
        return pageHtml;
    }

    
    public void setVSubNodes ( NodeTree[] _subNodes )
    {
        subNodes = _subNodes;
    }
}
